package zhongbo.java.air.ingestion.listener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @author WeiJin
 * @version 1.0
 * @since 2025/4/3 10:22
 */
@Component
public class RedisFlightPathPublisher {

    @Autowired
    private RedisTemplate<String, String> redisTemplate;

    /**
     * 发送频道
     */
    private static final String INGESTION_FLIGHT_PATH = "ingestion_flight_path_wei_jin";

    public void publish(String message) {
        redisTemplate.convertAndSend(INGESTION_FLIGHT_PATH, message);
}
}
